Skip to content

Commit

Permalink
upgrade build config
Browse files Browse the repository at this point in the history
  • Loading branch information
alimanfoo committed Aug 6, 2019
1 parent 864ce9a commit 5a02de0
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 38 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ tmp*
env/
spike*
petl.egg-info

petl/version.py
pip-wheel-metadata
15 changes: 0 additions & 15 deletions ci_requirements.txt

This file was deleted.

4 changes: 1 addition & 3 deletions petl/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
from __future__ import absolute_import, print_function, division


__version__ = '1.2.0'


from petl.version import version as __version__
from petl import comparison
from petl.comparison import Comparable
from petl import util
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[build-system]
requires = ["setuptools", "setuptools-scm", "wheel"]
30 changes: 11 additions & 19 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,41 +1,33 @@
from __future__ import print_function, absolute_import, division


from ast import literal_eval
from setuptools import setup


def get_version(source='petl/__init__.py'):
with open(source) as f:
for line in f:
if line.startswith('__version__'):
return literal_eval(line.split('=')[-1].lstrip())
raise ValueError("__version__ not found")
from setuptools import setup, find_packages


setup(
name='petl',
version=get_version(),
author='Alistair Miles',
author_email='[email protected]',
package_dir={'': '.'},
packages=['petl', 'petl.io', 'petl.transform', 'petl.util',
'petl.test', 'petl.test.io', 'petl.test.transform',
'petl.test.util'],
packages=find_packages('.'),
scripts=['bin/petl'],
url='https://github.com/alimanfoo/petl',
url='https://github.com/petl-developers/petl',
license='MIT License',
description='A Python package for extracting, transforming and loading '
'tables of data.',
long_description=open('README.txt').read(),
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
setup_requires=["setuptools>18.0", "setuptools-scm>1.5.4"],
use_scm_version={
"version_scheme": "guess-next-dev",
"local_scheme": "dirty-tag",
"write_to": "petl/version.py",
},
classifiers=['Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
1 change: 1 addition & 0 deletions test_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ nose
tox
coveralls
coverage
setuptools-scm

0 comments on commit 5a02de0

Please sign in to comment.