Skip to content

Commit 699179d

Browse files
committed
rearranged some files and changed to be able to package it for pypi
1 parent d2c0766 commit 699179d

File tree

6 files changed

+32
-18
lines changed

6 files changed

+32
-18
lines changed

pastebin_python/__init__.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
"""A complete pastebin.com API wrapper for Python
2-
3-
.. moduleauthor:: Ferdinand Silva <[email protected]>
1+
"""
2+
A complete pastebin.com API wrapper for Python.
3+
Fork from Ferdinand Silva.
44
55
"""
66
from pastebin_python.pastebin import PastebinPython
77

8-
__version__ = "1.2"
9-
__app_name__ = "pastebin_python"
8+
__version__ = "1.2.1"
9+
__app_name__ = "pastebin_python_scraper"
1010
__description__ = "A complete pastebin.com API wrapper for Python"
11-
__author__ = "Ferdinand Silva"
12-
__author_email__ = "ferdinandsilva@ferdinandsilva.com"
13-
__app_url__ = "http://ferdinandsilva.com"
14-
__download_url__ = "https://github.com/%3Cspan%20class="x x-first x-last">six519/PastebinPython"
11+
__author__ = "André Fritsche"
12+
__author_email__ = "github@andresilaghi.com"
13+
__app_url__ = "https://www.andresilaghi.com"
14+
__download_url__ = "https://github.com/%3Cspan%20class="x x-first x-last">ihgalis/PastebinPython"

pastebin_python_scraper/__init__.py

Whitespace-only changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

setup.py

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,38 @@
11
import pastebin_python
2+
import setuptools
23

3-
try:
4-
from setuptools import setup
5-
except ImportError:
6-
from distutils.core import setup
4+
with open("README.md", "r") as f:
5+
long_description = f.read()
76

8-
setup(
7+
setuptools.setup(
98
name=pastebin_python.__app_name__,
109
version=pastebin_python.__version__,
1110
description=pastebin_python.__description__,
11+
long_description=long_description,
12+
long_description_content_type="text/markdown",
1213
author=pastebin_python.__author__,
1314
author_email=pastebin_python.__author_email__,
14-
packages=['pastebin_python'],
15+
packages=['pastebin_python', 'pastebin_python_scraper'],
1516
url=pastebin_python.__app_url__,
17+
install_requires=[
18+
'pymongo',
19+
'argparse',
20+
'logging',
21+
're',
22+
'time',
23+
'sys',
24+
'pprint',
25+
'flask',
26+
'bson',
27+
'requests'
28+
],
29+
python_requires='>=3.6',
1630
classifiers=(
17-
'Development Status :: 4 - Beta',
31+
'Development Status :: 5 - Production/Stable',
1832
'Intended Audience :: Developers',
1933
'Natural Language :: English',
2034
'Programming Language :: Python',
21-
'License :: Freeware',
35+
'License :: OSI Approved :: MIT License',
2236
),
2337
download_url=pastebin_python.__download_url__,
24-
)
38+
)

0 commit comments

Comments
 (0)