Skip to content

Commit

Permalink
Merge pull request #42 from roverdotcom/metadata-uplift
Browse files Browse the repository at this point in the history
Metadata uplift
  • Loading branch information
melinath authored Apr 1, 2019
2 parents a1be98f + 87b2d40 commit 696928a
Show file tree
Hide file tree
Showing 3 changed files with 155 additions and 19 deletions.
111 changes: 104 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,106 @@
*.sqlite3
*.sqlit3-journal
*.pyc
*.swp
*.swo
.DS_Store

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
django_inlinecss.egg-info/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
build/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
3 changes: 3 additions & 0 deletions django_inlinecss/__version__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
VERSION = (0, 1, 2)

__version__ = '.'.join(map(str, VERSION))
60 changes: 48 additions & 12 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,23 @@
from __future__ import print_function
from __future__ import unicode_literals

import io
import os

from setuptools import find_packages
from setuptools import setup


# Package meta-data.
NAME = 'django-inlinecss'
SRC_DIR = 'django_inlinecss'
DESCRIPTION = 'A Django app useful for inlining CSS (primarily for e-mails)'
URL = 'https://github.com/roverdotcom/django-inlinecss'
EMAIL = '[email protected]'
AUTHOR = 'Philip Kimmey'
REQUIRES_PYTHON = '>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <3.7'
VERSION = None

# What packages are required for this module to be executed?
REQUIRED = [
'Django>=1.11',
Expand All @@ -32,19 +45,42 @@
'tests': TESTS,
}

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


# Import the README and use it as the long-description.
# Note: this will only work if 'README.md' is present in your MANIFEST.in file!

try:
# Python 3 will raise FileNotFoundError instead of IOError
FileNotFoundError = IOError
except NameError:
pass

try:
with io.open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = '\n' + f.read()
except FileNotFoundError:
long_description = DESCRIPTION

# Load the package's __version__.py module as a dictionary.
about = {}
if not VERSION:
with open(os.path.join(here, SRC_DIR, '__version__.py')) as f:
exec(f.read(), about)
else:
about['__version__'] = VERSION


setup(
name='django-inlinecss',
version="0.1.2",
description='A Django app useful for inlining CSS (primarily for e-mails)',
long_description=open('README.md').read(),
author='Philip Kimmey',
author_email='[email protected]',
maintainer='Philip Kimmey',
maintainer_email='[email protected]',
license='BSD',
url='https://github.com/roverdotcom/django-inlinecss',
download_url='https://github.com/roverdotcom/django-inlinecss/releases',
name=NAME,
version=about['__version__'],
description=DESCRIPTION,
long_description=long_description,
author=AUTHOR,
author_email=EMAIL,
license='MIT',
url=URL,
packages=find_packages(),
include_package_data=True,
zip_safe=False,
Expand All @@ -53,7 +89,7 @@
'Environment :: Other Environment',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
Expand Down

0 comments on commit 696928a

Please sign in to comment.