-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
58 lines (50 loc) · 1.91 KB
/
setup.py
File metadata and controls
58 lines (50 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
from setuptools import setup, find_packages
try: # For pip >= 10
from pip._internal.req import parse_requirements
except ImportError: # For pip <= 9
from pip.req import parse_requirements
__version__ = '0.0.1' # Should match with __init.py__
_GITHUB_URL = 'https://github.com/tducret/leboncoin-python'
_KEYWORDS = ['api', 'leboncoin', 'parsing',
'python-wrapper', 'scraping', 'scraper', 'parser']
install_reqs = parse_requirements('requirements.txt', session='hack')
requirements = [str(ir.req) for ir in install_reqs]
setup(
name='leboncoin',
packages=find_packages(),
package_data={},entry_points='''
[console_scripts]
lbc=leboncoin.scripts.lbc:cli
''',
version=__version__,
license="MIT license",
platforms='Posix; MacOS X',
description="Non official Python wrapper for LeBonCoin",
long_description="Non official Python wrapper for LeBonCoin",
author="Thibault Ducret",
author_email='hello@tducret.com',
url=_GITHUB_URL,
download_url='{github_url}/tarball/{version}'.format(
github_url=_GITHUB_URL,
version=__version__),
keywords=_KEYWORDS,
setup_requires=requirements,
install_requires=requirements,
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
],
python_requires='>=3',
tests_require=['pytest'],
)
# ------------------------------------------
# To upload a new version on pypi
# ------------------------------------------
# Make sure everything was pushed (with a git status)
# (or git commit --am "Comment" and git push)
# export VERSION=<VERSION>; git tag $VERSION -m "First version"; git push --tags
# If you need to delete a tag
# git push --delete origin $VERSION; git tag -d $VERSION