[med-svn] [Git][med-team/patsy][upstream] New upstream version 0.5.3

Nilesh Patra (@nilesh) gitlab at salsa.debian.org
Sun Oct 23 11:45:34 BST 2022



Nilesh Patra pushed to branch upstream at Debian Med / patsy


Commits:
b072c44a by Nilesh Patra at 2022-10-23T16:06:32+05:30
New upstream version 0.5.3
- - - - -


7 changed files:

- − .github/workflows/publish.yml
- − .github/workflows/tox.yml
- doc/changes.rst
- patsy/eval.py
- patsy/version.py
- setup.py
- tox.ini


Changes:

=====================================
.github/workflows/publish.yml deleted
=====================================
@@ -1,27 +0,0 @@
-name: Publish tagged releases to PyPI
-
-on:
-  push:
-    tags:
-      - "v*"
-
-jobs:
-  deploy:
-    runs-on: ubuntu-latest
-    steps:
-    - uses: actions/checkout at v1
-    - name: Set up Python
-      uses: actions/setup-python at v1
-      with:
-        python-version: '3.7'
-    - name: Install dependencies
-      run: |
-        python -m pip install --upgrade pip
-        pip install setuptools wheel twine
-    - name: Build and publish
-      env:
-        TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
-        TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
-      run: |
-        python setup.py sdist bdist_wheel
-        twine upload dist/*


=====================================
.github/workflows/tox.yml deleted
=====================================
@@ -1,38 +0,0 @@
-name: Run Tox Tests
-
-on:
-  push:
-    branches:
-      - "*"
-
-jobs:
-  build:
-    runs-on: ubuntu-latest
-    strategy:
-      max-parallel: 4
-      matrix:
-        python-version: [2.7, 3.6, 3.7, 3.8, 3.9]
-        pandas-presence: ['with_pandas', 'without_pandas']
-    env:
-      PYTHON_VERSION: ${{ matrix.python-version }}
-      PANDAS_PRESENCE: ${{ matrix.pandas-presence }}
-    steps:
-    - uses: actions/checkout at v1
-    - name: Set up Python ${{ matrix.python-version }}
-      uses: actions/setup-python at v1
-      with:
-        python-version: ${{ matrix.python-version }}
-    - name: Install dependencies
-      run: |
-        python -m pip install --upgrade pip
-        pip install tox
-    - name: Test with tox
-      run: |
-        PYTHON_ENV="py${PYTHON_VERSION//./}"
-        tox -e "${PYTHON_ENV}-${PANDAS_PRESENCE}"
-    - name: Upload coverage to Codecov
-      uses: codecov/codecov-action at v1.0.10
-      with:
-        file: ./coverage.xml
-        flags: unittests
-        env_vars: PYTHON_VERSION,PANDAS_PRESENCE


=====================================
doc/changes.rst
=====================================
@@ -8,6 +8,15 @@ All Patsy releases are archived at Zenodo:
 .. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.592075.svg
    :target: https://doi.org/10.5281/zenodo.592075
 
+v0.5.3
+------
+
+* Officially add support for Python 3.10 and 3.11, and extend test coverage to
+  include these releases.
+* Fix handling of future interpreter features that no longer have a mandatory
+  release version, as for the `annotations` feature (See `#187
+  <https://github.com/pydata/patsy/pull/187>`__ for details.)
+
 v0.5.2
 ------
 


=====================================
patsy/eval.py
=====================================
@@ -29,7 +29,11 @@ def _all_future_flags():
     flags = 0
     for feature_name in __future__.all_feature_names:
         feature = getattr(__future__, feature_name)
-        if feature.getMandatoryRelease() > sys.version_info:
+        mr = feature.getMandatoryRelease()
+        # None means a planned feature was dropped, or at least postponed
+        # without a final decision; see, for example,
+        # https://docs.python.org/3.11/library/__future__.html#id2.
+        if mr is None or mr > sys.version_info:
             flags |= feature.compiler_flag
     return flags
 


=====================================
patsy/version.py
=====================================
@@ -17,4 +17,4 @@
 # want. (Contrast with the special suffix 1.0.0.dev, which sorts *before*
 # 1.0.0.)
 
-__version__ = "0.5.2"
+__version__ = "0.5.3"


=====================================
setup.py
=====================================
@@ -16,6 +16,7 @@ setup(
     version=__version__,
     description=DESC,
     long_description=LONG_DESC,
+    long_description_content_type="text/markdown",
     author="Nathaniel J. Smith",
     author_email="njs at pobox.com",
     license="2-clause BSD",
@@ -43,6 +44,8 @@ setup(
       "Programming Language :: Python :: 3.7",
       "Programming Language :: Python :: 3.8",
       "Programming Language :: Python :: 3.9",
+      "Programming Language :: Python :: 3.10",
+      "Programming Language :: Python :: 3.11",
       "Topic :: Scientific/Engineering",
     ],
 )


=====================================
tox.ini
=====================================
@@ -1,5 +1,15 @@
 [tox]
-envlist = {py27,py36,py37,py38,py39}-{with_pandas,without_pandas}
+envlist = {py27,py36,py37,py38,py39,py310,py311}-{with_pandas,without_pandas}
+
+[gh-actions]
+python =
+  2.7: py27
+  3.6: py36
+  3.7: py37
+  3.8: py38
+  3.9: py39
+  3.10: py310
+  3.11: py311
 
 [testenv]
 deps=



View it on GitLab: https://salsa.debian.org/med-team/patsy/-/commit/b072c44acb5b3b100fa33bc890f0a56145e68219

-- 
View it on GitLab: https://salsa.debian.org/med-team/patsy/-/commit/b072c44acb5b3b100fa33bc890f0a56145e68219
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20221023/9daf4a22/attachment-0001.htm>


More information about the debian-med-commit mailing list