Skip to content

Commit

Permalink
update packaging configuration (#602)
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeUrban authored Mar 7, 2022
1 parent 281c0f5 commit 670004c
Show file tree
Hide file tree
Showing 10 changed files with 95 additions and 70 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN apt-get update && apt-get install -y build-essential libssl-dev libffi-dev p

# Copy files to working directory
RUN mkdir /code /code/polaris /code/data
COPY ./example ./setup.py ./README.rst ./MANIFEST.in /code/
COPY ./example ./setup.py ./setup.cfg ./README.rst ./MANIFEST.in /code/
COPY ./polaris /code/polaris/

# Set fake environment variables so manage.py commands can run.
Expand Down
15 changes: 7 additions & 8 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
include LICENSE
include README.md
include .env.example
include polaris/polaris/static/polaris/base.css
include polaris/polaris/static/polaris/company-icon.svg
include polaris/polaris/static/polaris/chevron-down.svg
recursive-include polaris/polaris/static/polaris/scripts *
recursive-include polaris/polaris/templates *
recursive-include polaris/polaris/locale *
include README.rst
graft polaris/polaris/static/polaris/scripts
graft polaris/polaris/templates
graft polaris/polaris/locale
graft polaris/polaris/static
global-exclude *.scss
global-exclude *.py[co]
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ libsass = "*"
django-compressor = "*"
django-sass-processor = "*"
sphinx-autodoc-typehints = "*"
build = "*"

[packages]
django = ">=3.2, <4.0"
Expand Down
14 changes: 11 additions & 3 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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

# Setup Django
import django
from polaris import __version__

django.setup()

Expand All @@ -33,9 +34,9 @@
author = "Stellar Development Foundation"

# The short X.Y version
version = "2.2.0"
version = __version__
# The full version, including alpha/beta/rc tags
release = "2.2.0"
release = __version__


# -- General configuration ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion polaris/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ HORIZON_URI="https://horizon-testnet.stellar.org/"
SERVER_JWT_KEY="secret"
HOST_URL="https://example.com"
SEP10_HOME_DOMAINS="example.com"
ENABLE_SEP_0023=True
ENABLE_SEP_0023=True
1 change: 1 addition & 0 deletions polaris/polaris/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "2.2.0"
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
65 changes: 65 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
[metadata]
name = django-polaris
version = attr: polaris.__version__
description = An extendable Django server for Stellar Ecosystem Proposals.
long_description = file: README.rst
long_description_content_type = text/x-rst
url = django-polaris.readthedocs.io/en/stable
author = Stellar Development Foundation
author_email = [email protected]
license = Apache license 2.0
classifiers =
Environment :: Web Environment
Framework :: Django
Framework :: Django :: 3.2
Intended Audience :: Developers
License :: OSI Approved :: Apache Software License
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
project_urls =
Documentation = django-polaris.readthedocs.io/en/stable
Release notes = https://github.com/stellar/django-polaris/releases
Bug Tracker = https://github.com/stellar/django-polaris/issues
keywords =
stellar
sdf
anchor
server
polaris
sep-24
sep24
sep-31
sep31

[options]
python_requires = >=3.7
packages = find:
package_dir =
= polaris
include_package_data = true
install_requires =
django >=3.2, <4.0
asgiref >=3.2, <4
django-environ
django-model-utils <5.0, >=4.1
djangorestframework >=3.12, <4.0
whitenoise >=5.3, <6.0
stellar-sdk >=6.0.1, <7.0.0
aiohttp >=3.7, <4
django-cors-headers >=3.7, <4.0
toml
pyjwt <3.0, >=2.1
cryptography >=3.4, <4.0
sqlparse >=0.4.2


[options.packages.find]
where = polaris
include = polaris, polaris.*
exclude = polaris.tests, polaris.tests.*, polaris.collectstatic
57 changes: 2 additions & 55 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,57 +1,4 @@
from setuptools import setup, find_packages
from setuptools import setup


with open("README.rst") as f:
long_description = f.read()

setup(
name="django-polaris",
version="2.2.0",
description="An extendable Django server for Stellar Ecosystem Proposals",
long_description=long_description,
long_description_content_type="text/x-rst",
url="https://django-polaris.readthedocs.io/en/stable",
author="Jake Urban",
author_email="[email protected]",
license="Apache license 2.0",
classifiers=[
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 3.2",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
],
keywords=[
"stellar",
"sdf",
"anchor",
"server",
"polaris",
"sep-24",
"sep24",
"sep-31",
"sep31",
],
include_package_data=True,
package_dir={"": "polaris"},
packages=find_packages("polaris"),
install_requires=[
"django>=3.2,<4.0",
"asgiref>=3.2,<4",
"django-environ",
"django-model-utils<5.0,>=4.1",
"djangorestframework>=3.12,<4.0",
"whitenoise>=5.3,<6.0",
"stellar-sdk>=6.0.1,<7.0.0",
"aiohttp>=3.7,<4",
"django-cors-headers>=3.7,<4.0",
"toml",
"pyjwt<3.0,>=2.1",
"cryptography>=3.4,<4.0",
"sqlparse>=0.4.2",
],
python_requires=">=3.7",
)
setup()

0 comments on commit 670004c

Please sign in to comment.