Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pip install from tarball #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions c14/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
import requests
import slumber


__version__ = '0.0.2'


API_URL = 'https://api.online.net/api/v1'


Expand Down
1 change: 0 additions & 1 deletion c14/version.py

This file was deleted.

28 changes: 1 addition & 27 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,39 +18,13 @@
import os
import setuptools

from c14 import version


def _get_requirements():
requirements_path = '%s/%s' % (os.path.dirname(os.path.abspath(__file__)),
'requirements.txt')
with open(requirements_path, 'r') as f:
requirements = f.read()
# remove the dependencies which comes from url source because
# it's not supported by install_requires
return [dep for dep in requirements.split('\n')
if not dep.startswith('-e')]


def _get_readme():
readme_path = '%s/%s' % (os.path.dirname(os.path.abspath(__file__)),
'README.rst')

with codecs.open(readme_path, 'r', encoding='utf8') as f:
return f.read()


setuptools.setup(
name='c14',
version=version.__version__,
packages=setuptools.find_packages(),
setup_requires='setupmeta',
author='Yanis Guenane',
author_email='[email protected]',
description='C14 Python Wrapper',
long_description=_get_readme(),
install_requires=_get_requirements(),
url='https://github.com/Spredzy/python-c14',
license='Apache v2.0',
include_package_data=True,
classifiers=[
'Environment :: Console',
Expand Down