Fix setup.py to use proper XStatic mechanisms

The setup.py file was completely broken, missing required
information such as version and namespace_pakcages, and adding
extra spurious dependencies.

Change-Id: I6fb8361fa24db28541305db10b42b0722eae6665
This commit is contained in:
Radomir Dopieralski 2016-09-02 10:35:37 +02:00
parent f1e92703fc
commit 45478d96aa
2 changed files with 16 additions and 8 deletions

View File

@ -1,3 +1,4 @@
from xstatic.pkg import angular_smart_table as xs
from setuptools import setup, find_packages
# The README.txt file should be written in reST so that PyPI can use
@ -5,13 +6,20 @@ from setuptools import setup, find_packages
long_description = open('README.txt').read()
setup(
name='XStatic-smart-table',
description="""smart-table 1.4.13 (XStatic packaging standard)""",
name=xs.PACKAGE_NAME,
version=xs.PACKAGE_VERSION,
description=xs.DESCRIPTION,
long_description=long_description,
maintainer="Richard Jones",
maintainer_email='r1chardj0n3s@gmail.com',
use_scm_version=True,
setup_requires=['setuptools_scm', 'wheel'],
classifiers=xs.CLASSIFIERS,
keywords=xs.KEYWORDS,
maintainer=xs.MAINTAINER,
maintainer_email=xs.MAINTAINER_EMAIL,
license=xs.LICENSE,
url=xs.HOMEPAGE,
platforms=xs.PLATFORMS,
packages=find_packages(),
include_package_data=True
namespace_packages=['xstatic', 'xstatic.pkg', ],
include_package_data=True,
zip_safe=False,
install_requires=[],
)

View File

@ -17,7 +17,7 @@ NAME = __name__.split('.')[-1] # package name (e.g. 'foo' or 'foo_bar')
VERSION = '1.4.13' # version of the packaged files, please use the upstream
# version number
BUILD = '2' # our package build number, so we can release new builds
BUILD = '3' # our package build number, so we can release new builds
# with fixes for xstatic stuff.
PACKAGE_VERSION = VERSION + '.' + BUILD # version used for PyPi