Use setuptools for packaging
According to https://docs.python.org/3/library/distutils.html the setuptools are used in place of distutils anyway. Using it directly allows us to make packaging more flexible: specify dependencies, automatically find package name etc. Change-Id: I39ee53f352001e47c6df055cbec52d638480253d
This commit is contained in:
parent
738acb7b02
commit
7f7c4b4410
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
__version__ = '0.0.2'
|
__version__ = '0.0.3'
|
||||||
|
|
||||||
__all__ = ['obscvty', 'osmodumpdoc', 'osmotestconfig', 'osmotestvty',
|
__all__ = ['obscvty', 'osmodumpdoc', 'osmotestconfig', 'osmotestvty',
|
||||||
'osmoutil',
|
'osmoutil',
|
||||||
|
|
4
setup.py
4
setup.py
|
@ -15,7 +15,7 @@
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from distutils.core import setup
|
from setuptools import setup, find_packages
|
||||||
from osmopy import __version__
|
from osmopy import __version__
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ elif sys.version_info.major == 3:
|
||||||
setup(
|
setup(
|
||||||
name = 'osmopython',
|
name = 'osmopython',
|
||||||
version = __version__,
|
version = __version__,
|
||||||
packages = ["osmopy"],
|
packages = find_packages(),
|
||||||
scripts = scripts,
|
scripts = scripts,
|
||||||
license = "AGPLv3",
|
license = "AGPLv3",
|
||||||
description = "Osmopython: osmocom testing scripts",
|
description = "Osmopython: osmocom testing scripts",
|
||||||
|
|
Loading…
Reference in New Issue