From a52322353c85e51b8a0cf686d0a0eab914c0ac05 Mon Sep 17 00:00:00 2001 From: Aaron Reba Date: Thu, 21 Dec 2023 22:50:51 -0600 Subject: [PATCH] DBDAART-4915 Replace setup.py with pyproject.toml --- README.md | 7 ++ license.md | 116 +++++++++++++++++++++++++++++++++ pyproject.toml | 123 ++++++++++++++++++++++++++++++++++ requirements-val.txt | Bin 294 -> 0 bytes requirements.txt | Bin 1514 -> 0 bytes setup.py | 152 ------------------------------------------- taf/__init__.py | 2 +- 7 files changed, 247 insertions(+), 153 deletions(-) create mode 100644 README.md create mode 100644 license.md create mode 100644 pyproject.toml delete mode 100644 requirements-val.txt delete mode 100644 requirements.txt delete mode 100644 setup.py diff --git a/README.md b/README.md new file mode 100644 index 00000000..4ce5a8d3 --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +This project aims to provide transparency to state +Medicaid agencies and other stakeholders who are interested in +the logic and processes that are used to create CMS’ interim +T-MSIS Analytic Files (TAF). These new TAF data sets exist +alongside T-MSIS and serve as an alternate data source tailored to +meet the broad research needs of the Medicaid and CHIP data user +community. diff --git a/license.md b/license.md new file mode 100644 index 00000000..a7d5f5d8 --- /dev/null +++ b/license.md @@ -0,0 +1,116 @@ +CC0 1.0 Universal + +Statement of Purpose + +The laws of most jurisdictions throughout the world automatically confer +exclusive Copyright and Related Rights (defined below) upon the creator and +subsequent owner(s) (each and all, an "owner") of an original work of +authorship and/or a database (each, a "Work"). + +Certain owners wish to permanently relinquish those rights to a Work for the +purpose of contributing to a commons of creative, cultural and scientific +works ("Commons") that the public can reliably and without fear of later +claims of infringement build upon, modify, incorporate in other works, reuse +and redistribute as freely as possible in any form whatsoever and for any +purposes, including without limitation commercial purposes. These owners may +contribute to the Commons to promote the ideal of a free culture and the +further production of creative, cultural and scientific works, or to gain +reputation or greater distribution for their Work in part through the use and +efforts of others. + +For these and/or other purposes and motivations, and without any expectation +of additional consideration or compensation, the person associating CC0 with a +Work (the "Affirmer"), to the extent that he or she is an owner of Copyright +and Related Rights in the Work, voluntarily elects to apply CC0 to the Work +and publicly distribute the Work under its terms, with knowledge of his or her +Copyright and Related Rights in the Work and the meaning and intended legal +effect of CC0 on those rights. + +1. Copyright and Related Rights. A Work made available under CC0 may be +protected by copyright and related or neighboring rights ("Copyright and +Related Rights"). Copyright and Related Rights include, but are not limited +to, the following: + + i. the right to reproduce, adapt, distribute, perform, display, communicate, + and translate a Work + + ii. moral rights retained by the original author(s) and/or performer(s) + + iii. publicity and privacy rights pertaining to a person's image or likeness + depicted in a Work + + iv. rights protecting against unfair competition in regards to a Work, + subject to the limitations in paragraph 4(a), below + + v. rights protecting the extraction, dissemination, use and reuse of data in + a Work + + vi. database rights (such as those arising under Directive 96/9/EC of the + European Parliament and of the Council of 11 March 1996 on the legal + protection of databases, and under any national implementation thereof, + including any amended or successor version of such directive) and + + vii. other similar, equivalent or corresponding rights throughout the world + based on applicable law or treaty, and any national implementations thereof. + +2. Waiver. To the greatest extent permitted by, but not in contravention of, +applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and +unconditionally waives, abandons, and surrenders all of Affirmer's Copyright +and Related Rights and associated claims and causes of action, whether now +known or unknown (including existing as well as future claims and causes of +action), in the Work (i) in all territories worldwide, (ii) for the maximum +duration provided by applicable law or treaty (including future time +extensions), (iii) in any current or future medium and for any number of +copies, and (iv) for any purpose whatsoever, including without limitation +commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes +the Waiver for the benefit of each member of the public at large and to the +detriment of Affirmer's heirs and successors, fully intending that such Waiver +shall not be subject to revocation, rescission, cancellation, termination, or +any other legal or equitable action to disrupt the quiet enjoyment of the Work +by the public as contemplated by Affirmer's express Statement of Purpose. + +3. Public License Fallback. Should any part of the Waiver for any reason be +judged legally invalid or ineffective under applicable law, then the Waiver +shall be preserved to the maximum extent permitted taking into account +Affirmer's express Statement of Purpose. In addition, to the extent the Waiver +is so judged Affirmer hereby grants to each affected person a royalty-free, +non transferable, non sublicensable, non exclusive, irrevocable and +unconditional license to exercise Affirmer's Copyright and Related Rights in +the Work (i) in all territories worldwide, (ii) for the maximum duration +provided by applicable law or treaty (including future time extensions), (iii) +in any current or future medium and for any number of copies, and (iv) for any +purpose whatsoever, including without limitation commercial, advertising or +promotional purposes (the "License"). The License shall be deemed effective as +of the date CC0 was applied by Affirmer to the Work. Should any part of the +License for any reason be judged legally invalid or ineffective under +applicable law, such partial invalidity or ineffectiveness shall not +invalidate the remainder of the License, and in such case Affirmer hereby +affirms that he or she will not (i) exercise any of his or her remaining +Copyright and Related Rights in the Work or (ii) assert any associated claims +and causes of action with respect to the Work, in either case contrary to +Affirmer's express Statement of Purpose. + +4. Limitations and Disclaimers. + + a. No trademark or patent rights held by Affirmer are waived, abandoned, + surrendered, licensed or otherwise affected by this document. + + b. Affirmer offers the Work as-is and makes no representations or warranties + of any kind concerning the Work, express, implied, statutory or otherwise, + including without limitation warranties of title, merchantability, fitness + for a particular purpose, non infringement, or the absence of latent or + other defects, accuracy, or the present or absence of errors, whether or not + discoverable, all to the greatest extent permissible under applicable law. + + c. Affirmer disclaims responsibility for clearing rights of other persons + that may apply to the Work or any use thereof, including without limitation + any person's Copyright and Related Rights in the Work. Further, Affirmer + disclaims responsibility for obtaining any necessary consents, permissions + or other rights required for any use of the Work. + + d. Affirmer understands and acknowledges that Creative Commons is not a + party to this document and has no duty or obligation with respect to this + CC0 or use of the Work. + +For more information, please see +http://creativecommons.org/publicdomain/zero/1.0/ diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..ca6e7683 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,123 @@ +[build-system] +requires = ["wheel", "setuptools"] + +[project] +name = "taf" +dynamic = ["version"] +description = "A package to generate T-MSIS analytic files using Databricks" +readme = "README.md" + +authors = [ + {name = "Jesse Beaumont"}, + {name = "Scott Cleeton"}, + {name = "Matt Fury"}, + {name = "Aaron Reba"}, +] + +license = {file = "license.md"} + +classifiers = [ + "Programming Language :: Python :: 3.10.12 :: Only", + "Intended Audience :: Data Engineers", + "Intended Audience :: Business Analysts", +] +requires-python = ">=3.10" +dependencies = [ + "black==22.1.0", + "certifi==2021.10.8", + "charset-normalizer==2.0.12", + "click==8.0.4", + "colorama==0.4.4", + "databricks-cli==0.18.0", + "distlib==0.3.4", + "filelock==3.7.1", + "flake8==4.0.1", + "Flask==2.1.2", + "Flask-Cors==3.0.10", + "idna==3.3", + "importlib-metadata==4.11.4", + "itsdangerous==2.1.2", + "Jinja2==3.1.2", + "MarkupSafe==2.1.1", + "mccabe==0.6.1", + "mypy-extensions==0.4.3", + "networkx==2.8.2", + "npm==0.1.1", + "npx==0.1.1", + "numpy==1.22.3", + "optional-django==0.1.0", + "pandas==1.3.4", + "pathspec==0.9.0", + "platformdirs==2.5.1", + "psycopg2==2.9.3", + "pycodestyle==2.8.0", + "pyflakes==2.4.0", + "pyspark==3.4.0", + "python-dateutil==2.8.2", + "pytz==2021.3", + "requests==2.27.1", + "setuptools==69.0.2", + "six==1.16.0", + "sqllineage==1.3.5", + "sqlparse==0.4.2", + "tabulate==0.8.9", + "tomli==2.0.1", + "typing_extensions==4.1.1", + "urllib3==1.26.8", + "virtualenv==20.14.1", + "Werkzeug==2.1.2", + "wheel==0.37.0", + "zipp==3.8.0", + "awscli==1.27.144", +] + +[project.urls] +documentation = "https://id.atlassian.com/login?continue=https%3A%2F%2Fcms-dataconnect.atlassian.net%2Flogin%3FredirectCount%3D1%26dest-url%3D%252Fwiki%252Fspaces%252FTDRI%252Foverview%26application%3Dconfluence&application=confluence" +tracker = "https://cms-dataconnect.atlassian.net/jira/software/projects/TDRI/boards/168/backlog" + +[project.optional-dependencies] +val = [ + "autoflake==2.2.1", + "bandit==1.7.5", + "isort", + "pytest", +] + +[tool.distutils.bdist_wheel] +universal = true + +[tool.setuptools.dynamic] +version = { attr = "taf.__version__" } + +[tool.setuptools.packages.find] +# Do this to include all packages recursively without warnings. +include = ["taf", "taf.*"] + +[tool.black] +line-length = 99 + +[tool.isort] +line_length = 99 +profile = "black" + +[tool.flake8] +max-line-length = 99 +exclude = [".venv*", "venv*", "VE", "typings"] +extend-ignore = ["E203", "E501"] +extend-select = ["B950"] +# These are things that databricks injects into python's globals(), and that we +# use directly without importing anything. Don't let flake8 complain about them. +builtins = [ + "dbutils", + "display", + "displayHTML", + "getArgument", + "get_ipython", + "sc", + "spark", + "sqlContext", + "sql", + "table", + "udf", +] + diff --git a/requirements-val.txt b/requirements-val.txt deleted file mode 100644 index 3484fbead6584a011d8013166979b0ecc549d9b5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 294 zcmYL^Q4WGI5JczO#G^=1H1gwNKrj*!2(2+(UVU2%X47`JZ#t8HKZRcM>UC4ALJ!s2 zYNL|AQ>6wr&ql9sn<{$GDm9|8Tc;go%VhlTm4~^3_h@IYj>M-1O}bEfB|1=vvY;Je za>1L0XV7D$6ZfVWNi}ZFR=RS}A6(3G^q#zdy{FpfdQu+VEWU5uQPyztOoQinb^QUx CTrIx< diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index ef2a94b5db0b615ad8252f77ce16468539f545e3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1514 zcmZux!EV%04D=a^PuW$Iw$L6pA#p(Ji33NJ>}I#2*(BY(6w;3eW;}7SAQU}y`)rTL zWBdL7Ra#?(?d-`u;LGuCEyKC8xAq42m7OhFZ3i5AT)~GP8GN>OH~T#T(un z1G0AhmuU2-qN=%tN3tJY^%Ei@AE!jDTHu}hUJ6Dg-pl{r`_XlrJVw<~1?B4y#Yrb0 z&g}-eQ4cED{gp+X>fOc}l%B$i>7_N@RV{r zZYN-n;c@N{c@s diff --git a/taf/__init__.py b/taf/__init__.py index 349ad418..ba7116df 100644 --- a/taf/__init__.py +++ b/taf/__init__.py @@ -1 +1 @@ -__version__ = "PI04.03" +__version__ = "4.3"