Skip to content

Commit a1ec85d

Browse files
committed
Fix pip install from tarball
Remove boilerplate and let setupmeta do the work
1 parent c574adc commit a1ec85d

File tree

3 files changed

+5
-28
lines changed

3 files changed

+5
-28
lines changed

c14/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
import requests
1818
import slumber
1919

20+
21+
__version__ = '0.0.2'
22+
23+
2024
API_URL = 'https://api.online.net/api/v1'
2125

2226

c14/version.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

setup.py

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -18,39 +18,13 @@
1818
import os
1919
import setuptools
2020

21-
from c14 import version
22-
23-
24-
def _get_requirements():
25-
requirements_path = '%s/%s' % (os.path.dirname(os.path.abspath(__file__)),
26-
'requirements.txt')
27-
with open(requirements_path, 'r') as f:
28-
requirements = f.read()
29-
# remove the dependencies which comes from url source because
30-
# it's not supported by install_requires
31-
return [dep for dep in requirements.split('\n')
32-
if not dep.startswith('-e')]
33-
34-
35-
def _get_readme():
36-
readme_path = '%s/%s' % (os.path.dirname(os.path.abspath(__file__)),
37-
'README.rst')
38-
39-
with codecs.open(readme_path, 'r', encoding='utf8') as f:
40-
return f.read()
41-
4221

4322
setuptools.setup(
4423
name='c14',
45-
version=version.__version__,
46-
packages=setuptools.find_packages(),
24+
setup_requires='setupmeta',
4725
author='Yanis Guenane',
4826
author_email='yanis@guenane.org',
49-
description='C14 Python Wrapper',
50-
long_description=_get_readme(),
51-
install_requires=_get_requirements(),
5227
url='https://github.com/Spredzy/python-c14',
53-
license='Apache v2.0',
5428
include_package_data=True,
5529
classifiers=[
5630
'Environment :: Console',

0 commit comments

Comments
 (0)