Skip to content

Commit

Permalink
Create base for packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasLM committed Feb 6, 2018
1 parent f9f0bdb commit 963182b
Show file tree
Hide file tree
Showing 11 changed files with 155 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.pyc
__pycache__
.cache
build
dist
feedpubsub.egg-info
.coverage
19 changes: 19 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Copyright (c) 2018 Nicolas Le Manchet

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
6 changes: 6 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
include LICENSE
include README.rst

recursive-include feedpubsub *
recursive-include reader *
recursive-include um *
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
publish:
pip install -U pip setuptools wheel twine
python setup.py sdist
python setup.py bdist_wheel
twine upload dist/*
rm -fr build dist feedpubsub.egg-info

clean:
rm -fr build dist feedpubsub.egg-info

17 changes: 17 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Feedpubsub
==========

.. image:: https://travis-ci.org/NicolasLM/feedpubsub.svg?branch=master
:target: https://travis-ci.org/NicolasLM/feedpubsub
.. image:: https://coveralls.io/repos/github/NicolasLM/feedpubsub/badge.svg?branch=master
:target: https://coveralls.io/github/NicolasLM/feedpubsub?branch=master

RSS and Atom feeds reader for Python 3.

Quickstart
----------

Install Feedpubsub with pip::

pip install feedpubsub

5 changes: 3 additions & 2 deletions feedpubsub/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
PROJECT_DIR = os.path.dirname(os.path.abspath(__file__))


# Quick-start development settings - unsuitable for production
Expand Down Expand Up @@ -69,7 +70,7 @@
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, 'templates')],
'DIRS': [os.path.join(PROJECT_DIR, 'templates')],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
Expand Down Expand Up @@ -143,7 +144,7 @@

STATIC_URL = '/static/'
STATICFILES_DIRS = [
os.path.join(BASE_DIR, "static"),
os.path.join(PROJECT_DIR, "static"),
]

SITE_ID = 1
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
28 changes: 28 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
atoma==0.0.1
attrs==17.4.0
beautifulsoup4==4.6.0
bleach==2.1.2
blinker==1.4
certifi==2018.1.18
chardet==3.0.4
defusedxml==0.5.0
Django==2.0.1
django-allauth==0.34.0
django-bulma==0.3.4
django-debug-toolbar==1.9.1
html5lib==1.0.1
idna==2.6
oauthlib==2.0.6
psycopg2==2.7.3.2
python-dateutil==2.6.1
python3-openid==3.1.0
pytz==2017.3
redis==2.10.6
requests==2.18.4
requests-oauthlib==0.8.0
six==1.11.0
spinach==0.0.3.dev1
sqlparse==0.2.4
urllib3==1.22
waitress==1.1.0
webencodings==0.5.1
65 changes: 65 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
from setuptools import setup, find_packages
from codecs import open
from os import path

here = path.abspath(path.dirname(__file__))

with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()

with open(path.join(here, 'LICENSE'), encoding='utf-8') as f:
long_description += f.read()

setup(
name='feedpubsub',
version='0.0.1',
description='RSS and Atom feeds reader for Python 3',
long_description=long_description,
url='https://github.com/NicolasLM/feedpubsub',
author='Nicolas Le Manchet',
author_email='nicolas@lemanchet.fr',
license='MIT',
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Environment :: Web Environment',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.6',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content :: News/Diary',
'Framework :: Django',
],
keywords='rss atom feed feeds reader',

packages=find_packages(),
include_package_data=True,
scripts=['manage.py'],

install_requires=[
'django',
'django-allauth',
'django-bulma',
'atoma',
'beautifulsoup4',
'psycopg2',
'requests',
'spinach',
'waitress'
],

extras_require={
'tests': [
'pytest',
'pytest-cov',
'python-coveralls',
'pycodestyle'
]
}
)

0 comments on commit 963182b

Please sign in to comment.