Skip to content

Commit 87af823

Browse files
authored
fix: remove hacking changes, fix bugs in wheel/pypi release, release 1.2.8 (#445)
* revert: remove hacking changes * fix: add back changes and changelog * fix: skip upload * fix: get sdist build command right
1 parent 5bf404f commit 87af823

File tree

4 files changed

+36
-69
lines changed

4 files changed

+36
-69
lines changed

.github/workflows/wheel.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ concurrency:
2626
env:
2727
PYVER: '3.11'
2828
CIBW_SKIP_VAL: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.cibw_skip || 'cp36* cp37* pp* cp38*' }}
29-
CIBW_BUILD_FRONTEND: "build; args: --no-isolation"
30-
CIBW_BEFORE_BUILD: "pip install 'setuptools>=80' 'numpy>=1.7' 'setuptools-scm>=8'"
3129

3230
jobs:
3331
linux-manylinux:
@@ -207,7 +205,7 @@ jobs:
207205
- name: Install dependencies
208206
run: |
209207
python -m pip install -U pip
210-
pip install -U "numpy>=1.7" "setuptools>=80" "setuptools-scm>=8" build
208+
pip install -U build
211209
212210
- name: download wheels
213211
uses: actions/download-artifact@v5
@@ -218,7 +216,7 @@ jobs:
218216

219217
- name: build sdist
220218
run: |
221-
python -m build --sdist --no-isolation .
219+
python -m build --sdist .
222220
ls -l dist
223221
tar tvfz dist/*.tar.gz
224222
@@ -232,7 +230,7 @@ jobs:
232230
233231
# - name: publish to pypi
234232
# uses: pypa/gh-action-pypi-publish@release/v1
235-
# if: github.event_name == 'release' || github.event_name == 'workflow_dispatch'
233+
# if: github.event_name == 'release' || github.event.action == 'workflow_dispatch'
236234
# with:
237235
# verbose: true
238236
# skip-existing: true

CHANGES.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
unreleased
1+
version 1.2.8
22
-------------
33

44
Changes
@@ -11,6 +11,10 @@ Changes
1111
unaligned arrays are rare, this change should have
1212
minimal performance implications.
1313

14+
Bug Fixes
15+
16+
- Fixed error in PyPI uploads.
17+
1418
version 1.2.7
1519
-------------
1620

pyproject.toml

Lines changed: 0 additions & 35 deletions
This file was deleted.

setup.py

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# https://packaging.python.org/guides/distributing-packages-using-setuptools/
66

77
from __future__ import print_function
8-
from setuptools import setup, Extension # , find_packages
8+
from setuptools import setup, Extension, find_packages
99
from setuptools.command.build_ext import build_ext
1010

1111
import sys
@@ -303,37 +303,37 @@ def check_system_cfitsio_objects(self, obj_name):
303303

304304
ext = Extension("fitsio._fitsio_wrap", sources, include_dirs=['numpy'])
305305

306-
# description = ("A full featured python library to read from and "
307-
# "write to FITS files.")
306+
description = ("A full featured python library to read from and "
307+
"write to FITS files.")
308308

309-
# with open(os.path.join(os.path.dirname(__file__), "README.md")) as fp:
310-
# long_description = fp.read()
309+
with open(os.path.join(os.path.dirname(__file__), "README.md")) as fp:
310+
long_description = fp.read()
311311

312-
# classifiers = [
313-
# "Development Status :: 5 - Production/Stable",
314-
# "License :: OSI Approved :: GNU General Public License (GPL)",
315-
# "Topic :: Scientific/Engineering :: Astronomy",
316-
# "Intended Audience :: Science/Research",
317-
# ]
312+
classifiers = [
313+
"Development Status :: 5 - Production/Stable",
314+
"License :: OSI Approved :: GNU General Public License (GPL)",
315+
"Topic :: Scientific/Engineering :: Astronomy",
316+
"Intended Audience :: Science/Research",
317+
]
318318

319319
setup(
320-
# name="fitsio",
321-
# description=description,
322-
# long_description=long_description,
323-
# long_description_content_type='text/markdown; charset=UTF-8; variant=GFM',
324-
# license="GPL",
325-
# classifiers=classifiers,
326-
# url="https://github.com/esheldon/fitsio",
327-
# author="Erin Scott Sheldon",
328-
# author_email="erin.sheldon@gmail.com",
329-
# setup_requires=['numpy>=1.7', 'setuptools-scm>=8'],
330-
# install_requires=['numpy>=1.7'],
331-
# packages=find_packages(),
332-
# include_package_data=True,
320+
name="fitsio",
321+
description=description,
322+
long_description=long_description,
323+
long_description_content_type='text/markdown; charset=UTF-8; variant=GFM',
324+
license="GPL",
325+
classifiers=classifiers,
326+
url="https://github.com/esheldon/fitsio",
327+
author="Erin Scott Sheldon",
328+
author_email="erin.sheldon@gmail.com",
329+
setup_requires=['numpy>=1.7', 'setuptools-scm>=8'],
330+
install_requires=['numpy>=1.7'],
331+
packages=find_packages(),
332+
include_package_data=True,
333333
ext_modules=[ext],
334334
cmdclass={"build_ext": build_ext_subclass},
335-
# use_scm_version={
336-
# "version_file": "fitsio/_version.py",
337-
# "version_file_template": "__version__ = '{version}'\n"
338-
# }
335+
use_scm_version={
336+
"version_file": "fitsio/_version.py",
337+
"version_file_template": "__version__ = '{version}'\n"
338+
}
339339
)

0 commit comments

Comments
 (0)