Dies ist eine alte Version des Dokuments!
myproject/ ├── src/ │ ├── myproject/ │ │ ├── __init__.py │ │ ├── entry.py │ │ └── module1.py ├── setup.py ├── README.md
setup.py
from setuptools import setup, find_packages
setup(
name="myproject",
version="0.1.0",
packages=find_packages(where="src"), # <-- find packages in src/
package_dir={"": "src"}, # <-- map packages to src/
entry_points={
"console_scripts": [
"myproject= myproject.entry:main", # <-- entry.py must have main()
],
},
install_requires=[
# Add dependencies here if any
],
)
Important notes:
python3 setup.py sdist
py2dsc dist/myproject-0.1.0.tar.gz
cd deb_dist/myproject-0.1.0-1 dpkg-buildpackage -us -uc