Skip to content

Commit

Permalink
fix(ci): replace build
Browse files Browse the repository at this point in the history
  • Loading branch information
geoyee committed Sep 4, 2022
1 parent 2bc6943 commit 8d551f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
pip install twine wheel
- name: Build package
run: python -m build
run: |
python setup.py sdist bdist_wheel
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
Expand Down
10 changes: 3 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
import os.path as osp
import pathlib
import setuptools


PATH = pathlib.Path(__file__).parent

with open(osp.join(PATH, "README.md"), "r") as fh:
with open("README.md", "r", encoding="utf-8") as fh:
LONG_DESCRIPTION = fh.read()

with open(osp.join(PATH, "requirements.txt"), "r") as fin:
with open("requirements.txt", "r") as fin:
REQUIRED_PACKAGES = fin.read()

setuptools.setup(
name="sdrl",
version="0.0.3",
version="0.0.4",
author="geoyee",
author_email="[email protected]",
description="Satellite Data Read Library",
Expand Down

0 comments on commit 8d551f6

Please sign in to comment.