Skip to content

Commit

Permalink
Relicense under MIT-or-Apache-2.0 (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
msanders authored Dec 10, 2019
1 parent cd47a44 commit 19962d6
Show file tree
Hide file tree
Showing 13 changed files with 87 additions and 3 deletions.
2 changes: 1 addition & 1 deletion LICENSE → LICENSE-APACHE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2018 Michael Sanders.
Copyright 2018, 2019 Michael Sanders.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
18 changes: 18 additions & 0 deletions LICENSE-MIT
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Copyright 2018, 2019 Michael Sanders.

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3 changes: 2 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
include CHANGELOG.md
include Cargo.toml
include LICENSE
include LICENSE-APACHE
include LICENSE-MIT
include requirements.txt
recursive-include src *
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,3 +233,11 @@ haystack.find_bitmap(needle, rect=((10, 10), (100, 100)))
Hope you enjoy using autopy! For a more in depth overview, see the [API
Reference](https://www.autopy.org/documentation/api-reference/).

## License

This project is licensed under either the [Apache-2.0](LICENSE-APACHE) or
[MIT](LICENSE-MIT) license, at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
dual licensed as above, without any additional terms or conditions.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,15 @@ def main():
long_description=read_description(),
long_description_content_type='text/markdown',
url='https://www.autopy.org',
license='Apache-2.0',
license='MIT OR Apache-2.0',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: MacOS X',
'Environment :: Win32 (MS Windows)',
'Environment :: X11 Applications',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: MacOS',
'Operating System :: Microsoft :: Windows',
Expand Down
7 changes: 7 additions & 0 deletions src/alert.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// Copyright 2018, 2019 Michael Sanders
//
// Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
// https://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
// https://opensource.org/licenses/MIT>, at your option. This file may not be
// copied, modified, or distributed except according to those terms.

use autopilot::alert::Response;
use pyo3::prelude::*;

Expand Down
7 changes: 7 additions & 0 deletions src/bitmap.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// Copyright 2018, 2019 Michael Sanders
//
// Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
// https://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
// https://opensource.org/licenses/MIT>, at your option. This file may not be
// copied, modified, or distributed except according to those terms.

use autopilot::geometry::{Point, Rect, Size};
use image;
use image::Pixel;
Expand Down
7 changes: 7 additions & 0 deletions src/color.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// Copyright 2018, 2019 Michael Sanders
//
// Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
// https://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
// https://opensource.org/licenses/MIT>, at your option. This file may not be
// copied, modified, or distributed except according to those terms.

use internal::rgb_to_hex;
use pyo3::prelude::*;

Expand Down
7 changes: 7 additions & 0 deletions src/internal.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// Copyright 2018, 2019 Michael Sanders
//
// Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
// https://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
// https://opensource.org/licenses/MIT>, at your option. This file may not be
// copied, modified, or distributed except according to those terms.

use image::ImageError;
use pyo3::prelude::*;

Expand Down
7 changes: 7 additions & 0 deletions src/key.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// Copyright 2018, 2019 Michael Sanders
//
// Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
// https://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
// https://opensource.org/licenses/MIT>, at your option. This file may not be
// copied, modified, or distributed except according to those terms.

use either::{Either, Left, Right};
use pyo3::prelude::*;
use pyo3::types::{PyAny, PyString};
Expand Down
7 changes: 7 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// Copyright 2018, 2019 Michael Sanders
//
// Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
// https://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
// https://opensource.org/licenses/MIT>, at your option. This file may not be
// copied, modified, or distributed except according to those terms.

#![feature(specialization, const_fn, custom_attribute)]

extern crate autopilot;
Expand Down
7 changes: 7 additions & 0 deletions src/mouse.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// Copyright 2018, 2019 Michael Sanders
//
// Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
// https://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
// https://opensource.org/licenses/MIT>, at your option. This file may not be
// copied, modified, or distributed except according to those terms.

use autopilot::geometry::Point;
use pyo3::prelude::*;

Expand Down
7 changes: 7 additions & 0 deletions src/screen.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// Copyright 2018, 2019 Michael Sanders
//
// Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
// https://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
// https://opensource.org/licenses/MIT>, at your option. This file may not be
// copied, modified, or distributed except according to those terms.

use autopilot::geometry::Point;
use image::Pixel;
use internal::{rgb_to_hex, FromImageError};
Expand Down

0 comments on commit 19962d6

Please sign in to comment.