Skip to content

Commit

Permalink
progress
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Mar 12, 2024
1 parent d4d604a commit 58d3e4a
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
32 changes: 32 additions & 0 deletions requirements/pip-compile-custom.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/env bash

# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# A simple example of how to customize your python dependencies while re-using
# as much as the pinned ones from the true-and-tested ones

# first, create your own `requirements.in` file, as this example file
# see `requirements/requirements-custom-example.in` as an example

# copy the pinned dependency so that we can make it the target outpout for pip-compile
# here we're getting pip-compile into using its output as an input
cp requirements/development.txt requirements/requirements-custom-example.txt

# pip-compile mixing your input and output (which also acts as the basis)
pip-compile -o requirements-custom-example.in requirements-custom-example.in

# this ideally is done as part of the release process, whenever any
# of the files referenced here change, including requirements/development.txt
8 changes: 8 additions & 0 deletions requirements/requirements-custom-example.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# defining which extra_requires set of packages I need
-e .[development,hive]

# add an extra library to my own environment
cherrytree

# pin an existing Superset reference to a specific version
boto3==1.18.44

0 comments on commit 58d3e4a

Please sign in to comment.