diff --git a/README.md b/README.md index d736be6..90e6745 100644 --- a/README.md +++ b/README.md @@ -64,10 +64,10 @@ First, install your Dagster code as a Python package. By using the `--editable` pip install -e ".[dev]" ``` -Then, start the Dagit web server: +Then, start the Dagster web server: ```bash -dagit +dagster dev ``` Open http://localhost:3000 with your browser to see the project. @@ -242,7 +242,7 @@ Using environment variables, you can define various configuration options for yo Check out [Using environment variables and secrets](https://docs.dagster.io/guides/dagster/using-environment-variables-and-secrets) for more info and examples. ### Adding new Python dependencies -You can specify new Python dependencies in `setup.py`. +You can specify new Python dependencies in `pyproject.toml`. ### Testing diff --git a/pyproject.toml b/pyproject.toml index db34245..a0bf966 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,27 @@ +[project] +name = "quickstart_etl" +version = "0.1.0" +description = "Dagster project for ETL quickstart." +readme = "README.md" +requires-python = ">=3.8,<3.13" +dependencies = [ + "boto3", + "dagster", + "dagster-cloud", + "matplotlib", + "pandas", + "textblob", + "tweepy", + "wordcloud", +] + +[project.optional-dependencies] +dev = ["dagster-webserver", "pytest"] + [build-system] requires = ["setuptools"] build-backend = "setuptools.build_meta" [tool.dagster] -module_name = "quickstart_etl" \ No newline at end of file +module_name = "quickstart_etl.definitions" +code_location_name = "quickstart_etl" \ No newline at end of file diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index c39bb92..0000000 --- a/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[metadata] -name = quickstart_etl diff --git a/setup.py b/setup.py deleted file mode 100644 index 9b0d0cc..0000000 --- a/setup.py +++ /dev/null @@ -1,17 +0,0 @@ -from setuptools import find_packages, setup - -setup( - name="quickstart_etl", - packages=find_packages(exclude=["quickstart_etl_tests"]), - install_requires=[ - "dagster", - "dagster-cloud", - "boto3", - "pandas", - "matplotlib", - "textblob", - "tweepy", - "wordcloud", - ], - extras_require={"dev": ["dagit", "pytest"]}, -)