mirror of
https://github.com/fergalmoran/picard.git
synced 2025-12-25 02:40:03 +00:00
Merge pull request #721 from samj1912/pip
Update setup script to allow submitting pip packages
This commit is contained in:
@@ -76,3 +76,12 @@ To run the included tests, follow the instructions for "Running From
|
|||||||
the Source Tree". Afterward you can run the tests using setup.py:
|
the Source Tree". Afterward you can run the tests using setup.py:
|
||||||
|
|
||||||
python3 setup.py test
|
python3 setup.py test
|
||||||
|
|
||||||
|
Packaging
|
||||||
|
---------
|
||||||
|
|
||||||
|
Picard supports packaging binaries and uploading them to PyPi.
|
||||||
|
|
||||||
|
To submit a package run:
|
||||||
|
|
||||||
|
python setup.py sdist upload -r pypi
|
||||||
|
|||||||
1
MANIFEST.in
Normal file
1
MANIFEST.in
Normal file
@@ -0,0 +1 @@
|
|||||||
|
graft po
|
||||||
5
setup.py
5
setup.py
@@ -29,10 +29,10 @@ except ImportError:
|
|||||||
from distutils import log
|
from distutils import log
|
||||||
from distutils.command.build import build
|
from distutils.command.build import build
|
||||||
from distutils.command.install import install as install
|
from distutils.command.install import install as install
|
||||||
from distutils.core import setup, Command, Extension
|
|
||||||
from distutils.dep_util import newer
|
from distutils.dep_util import newer
|
||||||
from distutils.dist import Distribution
|
from distutils.dist import Distribution
|
||||||
from distutils.spawn import find_executable
|
from distutils.spawn import find_executable
|
||||||
|
from setuptools import setup, Command, Extension
|
||||||
|
|
||||||
ext_modules = [
|
ext_modules = [
|
||||||
Extension('picard.util._astrcmp', sources=['picard/util/_astrcmp.c']),
|
Extension('picard.util._astrcmp', sources=['picard/util/_astrcmp.c']),
|
||||||
@@ -663,6 +663,7 @@ args2 = {
|
|||||||
'patch_version': picard_patch_version,
|
'patch_version': picard_patch_version,
|
||||||
},
|
},
|
||||||
'scripts': ['scripts/picard'],
|
'scripts': ['scripts/picard'],
|
||||||
|
'install_requires': ['PyQt5', 'mutagen'],
|
||||||
}
|
}
|
||||||
args.update(args2)
|
args.update(args2)
|
||||||
|
|
||||||
@@ -779,6 +780,6 @@ if py2exe is None and do_py2app is False:
|
|||||||
args['data_files'].append(('share/icons/hicolor/256x256/apps', ['resources/images/256x256/picard.png']))
|
args['data_files'].append(('share/icons/hicolor/256x256/apps', ['resources/images/256x256/picard.png']))
|
||||||
args['data_files'].append(('share/icons/hicolor/scalable/apps', ['resources/img-src/picard.svg']))
|
args['data_files'].append(('share/icons/hicolor/scalable/apps', ['resources/img-src/picard.svg']))
|
||||||
args['data_files'].append(('share/applications', ('picard.desktop',)))
|
args['data_files'].append(('share/applications', ('picard.desktop',)))
|
||||||
|
args['data_files'].append('scripts/picard.in')
|
||||||
|
|
||||||
setup(**args)
|
setup(**args)
|
||||||
|
|||||||
Reference in New Issue
Block a user