Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
python-defaults
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pkg
python-defaults
Commits
c0c49dd2
Commit
c0c49dd2
authored
14 years ago
by
Piotr Ożarowski
Browse files
Options
Downloads
Patches
Plain Diff
add README.PyDist
parent
b35b8f59
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.PyDist
+79
-0
79 additions, 0 deletions
README.PyDist
debian/changelog
+6
-0
6 additions, 0 deletions
debian/changelog
debian/python-doc.docs
+1
-0
1 addition, 0 deletions
debian/python-doc.docs
debian/rules
+2
-1
2 additions, 1 deletion
debian/rules
with
88 additions
and
1 deletion
README.PyDist
0 → 100644
+
79
−
0
View file @
c0c49dd2
============
PyDist files
============
DISTNAME [VRANGE] DEPENDENCY[; [PEP386] [RULES]]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PyDist files help tools like dh_python2 to translate Python dependencies (from
setup.py's install_requires or egg's requires.txt file) to Debian dependencies.
Required fields:
~~~~~~~~~~~~~~~~
DISTNAME
````````
Python distribution name (you can find it at the beginning of .egg-info
file/directory name that your package provides).
Examples:
* SQLAlchemy
* Jinja2
* numpy
DEPENDENCY
``````````
Debian dependency, multiple packages or versions are allowed.
Examples:
* python-mako
* python-jinja2 | python (>= 2.6)
* python-sqlalchemy (>= 0.5), python-sqlalchemy (<< 0.6)
Optional fields:
~~~~~~~~~~~~~~~~
VRANGE
``````
Python version or version range the line applies to.
Examples:
* 2.6 (Python 2.6 only)
* 2.5- (Python 2.5 and newer)
* 2.5-2.7 (Python 2.5 or 2.6)
* -2.7 (Python 2.6 or older)
PEP386 - standards flag: upstream uses versioning schema described in PEP 386
RULES
`````
Rules needed to translate upstream version to Debian one. If PEP386 is
set, its rules will be applied later. Multiple rules are allowed, separate them
with a space.
Examples:
* s/^/2:/
* s/alpha/~alpha/ s/^/1:/
Notes:
~~~~~~
You can use multiple lines if binary package provides more than one Python
distribution or if you want to specify different dependencies for each Python
version or version range.
If you use dh_python2, it will install debian/binary_package_name.pydist file
to /usr/share/python/dist/binary_package_name automatically.
Complete examples:
~~~~~~~~~~~~~~~~~~
* SQLAlchemy python-sqlalchemy (>= 0.5), python-sqlalchemy (<< 0.6)
* Mako python-mako; PEP386
* foo -2.5 python-oldfoo; s/^/3:/
* foo 2.5- python-foo; PEP386
.. vim: ft=rst
This diff is collapsed.
Click to expand it.
debian/changelog
+
6
−
0
View file @
c0c49dd2
python-defaults (2.6.5-11) UNRELEASED; urgency=low
* Add README.PyDist to python-doc package
-- Piotr Ożarowski <piotr@debian.org> Tue, 27 Jul 2010 21:25:54 +0200
python-defaults (2.6.5-10) unstable; urgency=medium
* dh_python2:
...
...
This diff is collapsed.
Click to expand it.
debian/python-doc.docs
0 → 100644
+
1
−
0
View file @
c0c49dd2
README.PyDist*
This diff is collapsed.
Click to expand it.
debian/rules
+
2
−
1
View file @
c0c49dd2
...
...
@@ -46,6 +46,7 @@ stamp-doc-policy:
debiandoc2html debian/python-policy.sgml
rm -rf debian/python-policy.html
mv -f python-policy.html debian/
rst2html README.PyDist README.PyDist.html
touch stamp-doc-policy
stamp-doc: stamp-doc-policy
...
...
@@ -104,7 +105,7 @@ clean: control-file
done
rm -f debian/*.py[co]
make clean
dh_clean
dh_clean
README.PyDist.html
stamp-control:
: # We have to prepare the various control files
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment