Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
bb5fc65c
Commit
bb5fc65c
authored
Mar 31, 2003
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- add the "download_url" field to the pre-2.2.3 metadata compatibility note
- fix some markup nits
parent
10c4b0e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
26 deletions
+26
-26
Doc/dist/dist.tex
Doc/dist/dist.tex
+26
-26
No files found.
Doc/dist/dist.tex
View file @
bb5fc65c
...
...
@@ -297,8 +297,8 @@ mind that the \emph{absence} of a leading slash indicates a relative
path, the opposite of the MacOS convention with colons.)
This, of course, only applies to pathnames given to Distutils
functions. If you, for example, use standard
p
ython functions such as
\function
{
glob.glob
}
or
\function
{
os.listdir
}
to specify files, you
functions. If you, for example, use standard
P
ython functions such as
\function
{
glob.glob
()
}
or
\function
{
os.listdir()
}
to specify files, you
should be careful to write portable code instead of hardcoding path
separators:
...
...
@@ -714,42 +714,42 @@ version. This information includes:
Python versions prior to 2.2.3 or 2.3.
\item
[(4)]
The list of classifiers is available from the
PyPI website (
\url
{
http://www.python.org/pypi
}
).
\end{description}
\option
{
classifiers
}
are specified in a python list:
\option
{
classifiers
}
are specified as a list of strings:
\begin{verbatim}
setup(...
classifiers =
[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Environment :: Web Environment',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Python Software Foundation License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python',
'Topic :: Communications :: Email',
'Topic :: Office/Business',
'Topic :: Software Development :: Bug Tracking',
],
classifiers=
[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Environment :: Web Environment',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Python Software Foundation License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python',
'Topic :: Communications :: Email',
'Topic :: Office/Business',
'Topic :: Software Development :: Bug Tracking',
],
...
)
)
\end{verbatim}
\end{description}
If you wish to include classifiers
in your
\file
{
setup.py
}
file and also
wish to remain backwards-compatible with Python releases prior to 2.2.3,
then you can include the following code fragment in your
\file
{
setup.py
}
before the
\code
{
setup()
}
call.
If you wish to include classifiers
or a download URL in your
\file
{
setup.py
}
file and also wish to remain backwards-compatible with
Python releases prior to 2.2.3, then you can include the following
code fragment in your
\file
{
setup.py
}
before the
\code
{
setup()
}
call:
\begin{verbatim}
# patch distutils if it can't cope with the "classifiers" keyword
if sys.version < '2.2.3':
from distutils.dist import DistributionMetadata
DistributionMetadata.classifiers = None
DistributionMetadata.download
_
url = None
\end{verbatim}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment