mirror of
https://github.com/robmcmullen/atrcopy.git
synced 2024-11-28 20:51:44 +00:00
Fixed setup to install dependencies using MANIFEST.in
* moved version number to _metadata.py
This commit is contained in:
parent
359e690b1c
commit
ad1eca7b17
@ -1,3 +1,9 @@
|
||||
include LICENSE
|
||||
include README.rst
|
||||
recursive-include scripts *
|
||||
include atrcopy/templates/*
|
||||
include test_data/dos*atr
|
||||
include test_data/sd*atr
|
||||
include test_data/*.xex
|
||||
include test_data/rebuild.sh
|
||||
include test_data/create_binary.py
|
||||
|
@ -1,11 +1,11 @@
|
||||
__version__ = "4.0.0"
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
import logging
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
from _metadata import __version__
|
||||
|
||||
try:
|
||||
import numpy as np
|
||||
except ImportError:
|
||||
|
5
atrcopy/_metadata.py
Normal file
5
atrcopy/_metadata.py
Normal file
@ -0,0 +1,5 @@
|
||||
__version__ = "4.0"
|
||||
__author__ = "Rob McMullen"
|
||||
__author_email__ = "feedback@playermissile.com"
|
||||
__url__ = "https://github.com/robmcmullen/atrcopy"
|
||||
__bug_report_url__ = "https://github.com/robmcmullen/atrcopy/issues"
|
39
setup.py
39
setup.py
@ -1,5 +1,3 @@
|
||||
from __future__ import with_statement
|
||||
|
||||
import sys
|
||||
|
||||
try:
|
||||
@ -7,20 +5,7 @@ try:
|
||||
except ImportError:
|
||||
from distutils.core import setup
|
||||
|
||||
try:
|
||||
import atrcopy
|
||||
version = atrcopy.__version__
|
||||
except RuntimeError, e:
|
||||
# If numpy isn't present, pull the version number from the error string
|
||||
version = str(e).split()[1]
|
||||
|
||||
classifiers = [
|
||||
"Programming Language :: Python :: 2",
|
||||
"Intended Audience :: Developers",
|
||||
"License :: OSI Approved :: GNU General Public License (GPL)",
|
||||
"Topic :: Software Development :: Libraries",
|
||||
"Topic :: Utilities",
|
||||
]
|
||||
execfile('atrcopy/_metadata.py')
|
||||
|
||||
with open("README.rst", "r") as fp:
|
||||
long_description = fp.read()
|
||||
@ -31,17 +16,27 @@ else:
|
||||
scripts = ["scripts/atrcopy"]
|
||||
|
||||
setup(name="atrcopy",
|
||||
version=version,
|
||||
author="Rob McMullen",
|
||||
author_email="feedback@playermissile.com>",
|
||||
url="https://github.com/robmcmullen/atrcopy",
|
||||
version=__version__,
|
||||
author=__author__,
|
||||
author_email=__author_email__,
|
||||
url=__url__,
|
||||
packages=["atrcopy"],
|
||||
include_package_data=True,
|
||||
scripts=scripts,
|
||||
description="Disk image utilities for Atari 8-bit emulators",
|
||||
description="Utility to manage file systems on Atari 8-bit (DOS 2, DOS 3) and Apple ][ (DOS 3.3) disk images.",
|
||||
long_description=long_description,
|
||||
license="GPL",
|
||||
classifiers=classifiers,
|
||||
classifiers=[
|
||||
"Programming Language :: Python :: 2",
|
||||
"Intended Audience :: Developers",
|
||||
"License :: OSI Approved :: GNU General Public License (GPL)",
|
||||
"Topic :: Software Development :: Libraries",
|
||||
"Topic :: Utilities",
|
||||
],
|
||||
install_requires = [
|
||||
'numpy',
|
||||
],
|
||||
tests_require = [
|
||||
'pytest',
|
||||
],
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user