Skip to content

Commit

Permalink
Remove setup.py in favor of pyproject.toml
Browse files Browse the repository at this point in the history
setuptools doesn't work without `setup.cfg`/`setup.py`.

flint had some minor issues - pypa/flit#525 / pypa/flit#488

poetry does not support namespace packages
  • Loading branch information
kaxil committed Feb 18, 2022
1 parent d4e0dd1 commit 6c90dd5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
8 changes: 4 additions & 4 deletions dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ ARG IMAGE_NAME="quay.io/astronomer/ap-airflow:2.2.3"
FROM ${IMAGE_NAME}

USER root
COPY astronomer/ ${AIRFLOW_HOME}/astronomer_operators/astronomer/
COPY setup.cfg ${AIRFLOW_HOME}/astronomer_operators/setup.cfg
COPY setup.py ${AIRFLOW_HOME}/astronomer_operators/setup.py
COPY astronomer/ ${AIRFLOW_HOME}/astronomer_providers/astronomer/
COPY setup.cfg ${AIRFLOW_HOME}/astronomer_providers/setup.cfg
COPY pyproject.toml ${AIRFLOW_HOME}/astronomer_providers/pyproject.toml

RUN pip install -e ${AIRFLOW_HOME}/astronomer_operators
RUN pip install -e ${AIRFLOW_HOME}/astronomer_providers
USER astro
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
11 changes: 8 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,28 +1,33 @@
[metadata]
name = astronomer-operators
name = astronomer-providers
version = 1.1.0
url = https://github.com/astronomer/astronomer-operators/
url = https://github.com/astronomer/astronomer-providers/
author = Astronomer
author_email = humans@astronomer.io
description = Airflow Providers containing Deferrable Operators & Sensors from Astronomer
long_description = file: README.rst
license = Apache License 2.0
license_files = LICENSE.txt
classifiers =
Development Status :: 4 - Beta
Environment :: Web Environment
Intended Audience :: Developers
License :: OSI Approved :: Apache Software License
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
project_urls =
Source Code=https://github.com/astronomer/astronomer-providers/
Homepage=https://astronomer.io/

[options]
python_requires = >=3.7
packages = find_namespace:
include_package_data = true
namespace_packages = astronomer,astronomer.operators
namespace_packages = astronomer,astronomer.providers
install_requires =
aiohttp
aiofiles
Expand Down
3 changes: 0 additions & 3 deletions setup.py

This file was deleted.

0 comments on commit 6c90dd5

Please sign in to comment.