From 9602f8ec522541e8cd539d62c4bc3211efa44267 Mon Sep 17 00:00:00 2001 From: Josh Waller Date: Sun, 29 Mar 2020 14:18:42 -0400 Subject: [PATCH 1/2] Adding beginning portions of packaging --- LICENSE | 7 +++++++ MANIFEST.in | 1 + fastic/__init__.py | 1 + fastic/__version__.py | 3 +++ setup.py | 48 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 60 insertions(+) create mode 100644 LICENSE create mode 100644 MANIFEST.in create mode 100644 fastic/__init__.py create mode 100644 fastic/__version__.py create mode 100644 setup.py diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..a14682c --- /dev/null +++ b/LICENSE @@ -0,0 +1,7 @@ +Copyright 2020 Josh Waller + +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. \ No newline at end of file diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..7bf5430 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ + include README.md LICENSE \ No newline at end of file diff --git a/fastic/__init__.py b/fastic/__init__.py new file mode 100644 index 0000000..47b5926 --- /dev/null +++ b/fastic/__init__.py @@ -0,0 +1 @@ +from .fastic import * diff --git a/fastic/__version__.py b/fastic/__version__.py new file mode 100644 index 0000000..96bfa14 --- /dev/null +++ b/fastic/__version__.py @@ -0,0 +1,3 @@ +VERSION = (1, 0, 0) + +__version__ = '.'.join(map(str, VERSION)) diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..658aa04 --- /dev/null +++ b/setup.py @@ -0,0 +1,48 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +import pathlib +from setuptools import setup, find_packages + +ROOT_DIR = pathlib.Path(__file__).parent +README = (ROOT_DIR / "README.md").read_text() + +# Package meta-data. +NAME = 'fastic' +DESCRIPTION = 'Flask static site generator with perks' +URL = 'https://github.com/mdxprograms/fastic' +EMAIL = 'mdxprograms@gmail.com' +AUTHOR = 'Josh Waller' +REQUIRES_PYTHON = '>=3.7.0' +VERSION = '1.0.0' + +# required packages +REQUIRED = [ + "astroid", "click", "dukpy", "htmlmin", "isort", "itsdangerous", + "lazy-object-proxy", "libsass", "mccabe", "ply", "python-dotenv", "six", + "slimit", "tornado", "typed-ast", "wrapt", "Flask", "Flask-FlatPages", + "Frozen-Flask", "Jinja2", "Markdown", "MarkupSafe", "PyYAML", "Werkzeug" +] + +setup( + name=NAME, + version=VERSION, + description=DESCRIPTION, + long_description=README, + long_description_content_type="text/markdown", + url=URL, + author=AUTHOR, + author_email=EMAIL, + python_requires=REQUIRES_PYTHON, + license="MIT", + classifiers=[ + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3" + "Programming Language :: Python :: 3.7", + 'Programming Language :: Python :: Implementation :: PyPy' + ], + packages=find_packages( + exclude=["tests", "*.tests", "*.tests.*", "tests.*"]), + include_package_data=True, + install_requires=REQUIRED, +) From 509be187afe8ae88cb8555d3d6cd4a60a7892c51 Mon Sep 17 00:00:00 2001 From: Josh Waller Date: Sun, 29 Mar 2020 22:39:39 -0400 Subject: [PATCH 2/2] Adding twine for publishing --- Pipfile | 1 + Pipfile.lock | 123 ++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 123 insertions(+), 1 deletion(-) diff --git a/Pipfile b/Pipfile index 59d0f16..1faf951 100644 --- a/Pipfile +++ b/Pipfile @@ -6,6 +6,7 @@ verify_ssl = true [dev-packages] livereload = "==2.6.1" pylint = "==2.3.1" +twine = "*" [packages] astroid = "==2.2.5" diff --git a/Pipfile.lock b/Pipfile.lock index d49391a..015e4c2 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "fb3c19e5b249d06de933b62486cf65f76b1f6af9cefa57ff865a97e5df0f35a0" + "sha256": "7967e63e769c0befc3fe6c13fe9b6177df4839dc47aa83c1725a1176ed5ad9de" }, "pipfile-spec": 6, "requires": { @@ -333,6 +333,49 @@ "index": "pypi", "version": "==2.2.5" }, + "bleach": { + "hashes": [ + "sha256:cc8da25076a1fe56c3ac63671e2194458e0c4d9c7becfd52ca251650d517903c", + "sha256:e78e426105ac07026ba098f04de8abe9b6e3e98b5befbf89b51a5ef0a4292b03" + ], + "version": "==3.1.4" + }, + "certifi": { + "hashes": [ + "sha256:017c25db2a153ce562900032d5bc68e9f191e44e9a0f762f373977de9df1fbb3", + "sha256:25b64c7da4cd7479594d035c08c2d809eb4aab3a26e5a990ea98cc450c320f1f" + ], + "version": "==2019.11.28" + }, + "chardet": { + "hashes": [ + "sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae", + "sha256:fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691" + ], + "version": "==3.0.4" + }, + "docutils": { + "hashes": [ + "sha256:0c5b78adfbf7762415433f5515cd5c9e762339e23369dbe8000d84a4bf4ab3af", + "sha256:c2de3a60e9e7d07be26b7f2b00ca0309c207e06c100f9cc2a94931fc75a478fc" + ], + "version": "==0.16" + }, + "idna": { + "hashes": [ + "sha256:7588d1c14ae4c77d74036e8c22ff447b26d0fde8f007354fd48a7814db15b7cb", + "sha256:a068a21ceac8a4d63dbfd964670474107f541babbd2250d61922f029858365fa" + ], + "version": "==2.9" + }, + "importlib-metadata": { + "hashes": [ + "sha256:2a688cbaa90e0cc587f1df48bdc97a6eadccdcd9c35fb3f976a09e3b5016d90f", + "sha256:34513a8a0c4962bc66d35b359558fd8a5e10cd472d37aec5f66858addef32c1e" + ], + "markers": "python_version < '3.8'", + "version": "==1.6.0" + }, "isort": { "hashes": [ "sha256:54da7e92468955c4fceacd0c86bd0ec997b0e1ee80d97f67c35a78b719dccab1", @@ -341,6 +384,13 @@ "index": "pypi", "version": "==4.3.21" }, + "keyring": { + "hashes": [ + "sha256:197fd5903901030ef7b82fe247f43cfed2c157a28e7747d1cfcf4bc5e699dd03", + "sha256:8179b1cdcdcbc221456b5b74e6b7cfa06f8dd9f239eb81892166d9223d82c5ba" + ], + "version": "==21.2.0" + }, "lazy-object-proxy": { "hashes": [ "sha256:02b260c8deb80db09325b99edf62ae344ce9bc64d68b7a634410b8e9a568edbf", @@ -381,6 +431,20 @@ "index": "pypi", "version": "==0.6.1" }, + "pkginfo": { + "hashes": [ + "sha256:7424f2c8511c186cd5424bbf31045b77435b37a8d604990b79d4e70d741148bb", + "sha256:a6d9e40ca61ad3ebd0b72fbadd4fba16e4c0e4df0428c041e01e06eb6ee71f32" + ], + "version": "==1.5.0.1" + }, + "pygments": { + "hashes": [ + "sha256:647344a061c249a3b74e230c739f434d7ea4d8b1d5f3721bc0f3558049b38f44", + "sha256:ff7a40b4860b727ab48fad6360eb351cc1b33cbf9b15a0f689ca5353e9463324" + ], + "version": "==2.6.1" + }, "pylint": { "hashes": [ "sha256:5d77031694a5fb97ea95e828c8d10fc770a1df6eb3906067aaed42201a8a6a09", @@ -389,6 +453,27 @@ "index": "pypi", "version": "==2.3.1" }, + "readme-renderer": { + "hashes": [ + "sha256:1b6d8dd1673a0b293766b4106af766b6eff3654605f9c4f239e65de6076bc222", + "sha256:e67d64242f0174a63c3b727801a2fff4c1f38ebe5d71d95ff7ece081945a6cd4" + ], + "version": "==25.0" + }, + "requests": { + "hashes": [ + "sha256:43999036bfa82904b6af1d99e4882b560e5e2c68e5c4b0aa03b655f3d7d73fee", + "sha256:b3f43d496c6daba4493e7c431722aeb7dbc6288f52a6e04e7b6023b0247817e6" + ], + "version": "==2.23.0" + }, + "requests-toolbelt": { + "hashes": [ + "sha256:380606e1d10dc85c3bd47bf5a6095f815ec007be7a8b69c878507068df059e6f", + "sha256:968089d4584ad4ad7c171454f0a5c6dac23971e9472521ea3b6d49d610aa6fc0" + ], + "version": "==0.9.1" + }, "six": { "hashes": [ "sha256:3350809f0555b11f552448330d0b52d5f24c91a322ea4a15ef22629740f3761c", @@ -410,6 +495,21 @@ "index": "pypi", "version": "==6.0.3" }, + "tqdm": { + "hashes": [ + "sha256:03d2366c64d44c7f61e74c700d9b202d57e9efe355ea5c28814c52bfe7a50b8c", + "sha256:be5ddeec77d78ba781ea41eacb2358a77f74cc2407f54b82222d7ee7dc8c8ccf" + ], + "version": "==4.44.1" + }, + "twine": { + "hashes": [ + "sha256:c1af8ca391e43b0a06bbc155f7f67db0bf0d19d284bfc88d1675da497a946124", + "sha256:d561a5e511f70275e5a485a6275ff61851c16ffcb3a95a602189161112d9f160" + ], + "index": "pypi", + "version": "==3.1.1" + }, "typed-ast": { "hashes": [ "sha256:1170afa46a3799e18b4c977777ce137bb53c7485379d9706af8a59f2ea1aa161", @@ -436,12 +536,33 @@ "index": "pypi", "version": "==1.4.0" }, + "urllib3": { + "hashes": [ + "sha256:2f3db8b19923a873b3e5256dc9c2dedfa883e33d87c690d9c7913e1f40673cdc", + "sha256:87716c2d2a7121198ebcb7ce7cccf6ce5e9ba539041cfbaeecfb641dc0bf6acc" + ], + "version": "==1.25.8" + }, + "webencodings": { + "hashes": [ + "sha256:a0af1213f3c2226497a97e2b3aa01a7e4bee4f403f95be16fc9acd2947514a78", + "sha256:b36a1c245f2d304965eb4e0a82848379241dc04b865afcc4aab16748587e1923" + ], + "version": "==0.5.1" + }, "wrapt": { "hashes": [ "sha256:565a021fd19419476b9362b05eeaa094178de64f8361e44468f9e9d7843901e1" ], "index": "pypi", "version": "==1.11.2" + }, + "zipp": { + "hashes": [ + "sha256:aa36550ff0c0b7ef7fa639055d797116ee891440eac1a56f378e2d3179e0320b", + "sha256:c599e4d75c98f6798c509911d08a22e6c021d074469042177c8c86fb92eefd96" + ], + "version": "==3.1.0" } } }